package com.snail.model.dto.cart;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 退款申请DTO
 */
@Data
public class RefundApplyDTO {
    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    private Long userId;


    /**
     * 订单ID
     */
    @NotNull(message = "订单编号不能为空")
    private String orderNo;

    /**
     * 退款原因
     */
    @NotBlank(message = "退款原因不能为空")
    private String reason;
    /**
     * 支付记录ID
     */
    @NotNull(message = "支付记录ID不能为空")
    private  Integer paymentId;

    @NotNull(message = "退款金额不能为空")
    private BigDecimal refundAmount;
}